<template>
  <el-container>
    <el-aside width="200px">
      <el-menu
        background-color="rgb(53,65,85)"
        text-color="#fff"
        default-active="/home/merchant"
        :router="true"
      >
        <el-menu-item index="/home/home">
          <i class="el-icon-menu"></i>
          <span slot="title"> 首页 </span>
        </el-menu-item>
        <el-submenu index="/home/management">
          <template slot="title">
            <i class="el-icon-document"></i>
            <span> 数据管理 </span>
          </template>
          <el-menu-item index="/home/merchant"> 商家列表 </el-menu-item>
          <el-menu-item index="/home/food"> 食品列表 </el-menu-item>
        </el-submenu>
      </el-menu>
    </el-aside>
    <el-main>
      <el-breadcrumb separator="/">
        <el-breadcrumb-item :to="{ path: '/home/home' }">首页</el-breadcrumb-item>
        <el-breadcrumb-item><a href="/">数据管理</a></el-breadcrumb-item>
        <el-breadcrumb-item>商家列表</el-breadcrumb-item>
      </el-breadcrumb>
      <router-view></router-view>
    </el-main>
  </el-container>
</template>

<script>
// @ is an alias to /src

export default {
  name: "Home",
  components: {},
};
</script>
<style lang="scss">
.el-container {
  width: 100%;
  height: 100%;
}
</style>